(global.webpackJsonp = global.webpackJsonp || []).push([ [ "wjyk_recycle/pages/goods-detail/goods-detail" ], {
    "0b44": function(n, t, o) {},
    2778: function(n, t, o) {
        o.r(t);
        var e, r = o("bd10"), i = o.n(r);
        for (e in r) "default" !== e && function(n) {
            o.d(t, n, function() {
                return r[n];
            });
        }(e);
        t.default = i.a;
    },
    "77e4": function(n, t, o) {
        function e() {
            this.$createElement, this._self._c;
        }
        var r = {
            richParser: function() {
                return Promise.all([ o.e("common/vendor"), o.e("components/rich-parser/rich-parser") ]).then(o.bind(null, "02a9"));
            }
        }, i = [];
        o.d(t, "b", function() {
            return e;
        }), o.d(t, "c", function() {
            return i;
        }), o.d(t, "a", function() {
            return r;
        });
    },
    "975d": function(n, t, o) {
        var e = o("0b44");
        o.n(e).a;
    },
    bd10: function(n, r, i) {
        (function(t) {
            Object.defineProperty(r, "__esModule", {
                value: !0
            }), r.default = void 0;
            var n, e = (n = i("4795")) && n.__esModule ? n : {
                default: n
            };
            function d(n, t, o, e, r, i, a) {
                try {
                    var u = n[i](a), d = u.value;
                } catch (n) {
                    return o(n), 0;
                }
                u.done ? t(d) : Promise.resolve(d).then(e, r);
            }
            var o = {
                data: function() {
                    return {
                        indicatorDots: !0,
                        autoplay: !0,
                        interval: 2e3,
                        duration: 500,
                        goodsid: "",
                        goodsInfo: {},
                        unit: ""
                    };
                },
                onLoad: function(n) {
                    this.goodsid = n.goodsid, this.unit = t.getStorageSync("name"), this.goodsDetails();
                },
                methods: {
                    confirmOrder: function() {
                        t.getStorageSync("uid") ? 0 == this.goodsInfo.inventory ? this.$sun.toast("暂无库存") : t.navigateTo({
                            url: "../confirm-order/confirm-order?goodsid=" + this.goodsid
                        }) : t.navigateTo({
                            url: "../auth/auth"
                        });
                    },
                    goodsDetails: function() {
                        var u, o = this;
                        return u = e.default.mark(function n() {
                            var t;
                            return e.default.wrap(function(n) {
                                for (;;) switch (n.prev = n.next) {
                                  case 0:
                                    return n.next = 2, o.$http({
                                        url: o.$api.goodsDetail,
                                        data: {
                                            goodsid: o.goodsid
                                        }
                                    });

                                  case 2:
                                    0 == (t = n.sent).errno && (o.goodsInfo = t.data, console.log("商品详情", t));

                                  case 4:
                                  case "end":
                                    return n.stop();
                                }
                            }, n);
                        }), function() {
                            var n = this, a = arguments;
                            return new Promise(function(t, o) {
                                var e = u.apply(n, a);
                                function r(n) {
                                    d(e, t, o, r, i, "next", n);
                                }
                                function i(n) {
                                    d(e, t, o, r, i, "throw", n);
                                }
                                r(void 0);
                            });
                        }();
                    }
                }
            };
            r.default = o;
        }).call(this, i("543d").default);
    },
    e328: function(n, t, o) {
        o.r(t);
        var e, r = o("77e4"), i = o("2778");
        for (e in i) "default" !== e && function(n) {
            o.d(t, n, function() {
                return i[n];
            });
        }(e);
        o("975d");
        var a = o("f0c5"), r = Object(a.a)(i.default, r.b, r.c, !1, null, null, null, !1, r.a, void 0);
        t.default = r.exports;
    },
    f4c1: function(n, t, o) {
        (function(n) {
            function t(n) {
                return n && n.__esModule ? n : {
                    default: n
                };
            }
            o("8163"), t(o("66fd")), n(t(o("e328")).default);
        }).call(this, o("543d").createPage);
    }
}, [ [ "f4c1", "common/runtime", "common/vendor" ] ] ]);